package com.forever7776.life.core.entity.sys;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 菜单表
 * </p>
 *
 * @author kz
 * @since 2018-01-18
 */
@TableName("sys_function")
public class SysFunction extends Model<SysFunction> {

    private static final long serialVersionUID = 1L;

	private String id;
    /**
     * 菜单级别（一级，二级）
     */
	private Integer level;
    /**
     * 菜单名称
     */
	private String name;
    /**
     * 菜单排序
     */
	private Integer sort;
    /**
     * 菜单路径
     */
	private String url;
    /**
     * 大功能图标
     */
	private String icon;
    /**
     * 父级url的id
     */
	@TableField("parent_id")
	private String parentId;
    /**
     * 菜单状态(0:展示 1:隐藏)
     */
	private Integer status;
    /**
     * 创建时间
     */
	@TableField("insert_date")
	private Date insertDate;
    /**
     * 更新时间
     */
	@TableField("last_update")
	private Date lastUpdate;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public Integer getLevel() {
		return level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getSort() {
		return sort;
	}

	public void setSort(Integer sort) {
		this.sort = sort;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getIcon() {
		return icon;
	}

	public void setIcon(String icon) {
		this.icon = icon;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Date getInsertDate() {
		return insertDate;
	}

	public void setInsertDate(Date insertDate) {
		this.insertDate = insertDate;
	}

	public Date getLastUpdate() {
		return lastUpdate;
	}

	public void setLastUpdate(Date lastUpdate) {
		this.lastUpdate = lastUpdate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SysFunction{" +
			", id=" + id +
			", level=" + level +
			", name=" + name +
			", sort=" + sort +
			", url=" + url +
			", icon=" + icon +
			", parentId=" + parentId +
			", status=" + status +
			", insertDate=" + insertDate +
			", lastUpdate=" + lastUpdate +
			"}";
	}
}
